<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<form action="${ctxPathA}/oa/seats/addOrUpdate" method="post" autocomplete="off" class="show-info">
	<shield:token/>
    <input id="id" name="id" type="hidden" maxlength="100" value="${param.id }">
    
    <table class="tab-show">
    	<colgroup>
    		<col width="20%">
    		<col width="">
    	</colgroup>
    	<tr>
	    	<th>
            	<label><font color="red">*</font>座次号：</label>
        	</th>
         	<td colspan="3"><input name="seatId" type="text" maxlength="100" value="${empty model.seatId?param.id:model.seatId }"></td>
		</tr>
        <tr>
	    	<th>
            	<label><font color="red">*</font>用户姓名：</label>
        	</th>
        	<!-- autocompleteTips提示，data-event表示触发事件，默认为keyup，data-tips-url为调取地址 -->
         	<td colspan="3"><input type="text" name="userName" value="${model.userName}" class="autocompleteTips" 
         	 data-tips-url="${ctxPathA}/system/common/getUsers">
         	 <input class="ignore" name="userId" type="hidden" value="${model.userId }"></td>
		</tr>
        <tr>
	    	<th>
            	<label>群组：</label>
        	</th>
         	<td colspan="3">
         		<select name="userGroup" class="select" data-v="${model.userGroup }"  >
					<option value="-1">====选择组======</option>
					<option value="0">前端组</option>
					<option value="1">项目管理组</option>
					<option value="2">java开发1组</option>
					<option value="3">java开发2组</option>
					<option value="4">java开发3组</option>
				</select>
         	</td>
		</tr>
<c:if test="${type == 1 }">
		<tr>
	    	<th>
            	<label>左边距：</label>
        	</th>
         	<td>
         		<input name="leftv" value="${model.leftv }" class="integer">
         	</td>
	    	<th>
            	<label>上边距：</label>
        	</th>
         	<td>
         		<input name="topv" value="${model.topv }" class="integer">
         	</td>
		</tr>
		<tr>
	    	<th>
            	<label>宽度：</label>
        	</th>
         	<td>
         		<input name="width" value="${model.width }" class="integer">
         	</td>
	    	<th>
            	<label>高度：</label>
        	</th>
         	<td>
         		<input name="height" value="${model.height }" class="integer">
         	</td>
		</tr>
</c:if>
    </table>
    <div class="taCenter">
		<input class="button" type="submit" value="提交"/>
    	<input class="button default" type="reset" value="重置"/>
    </div>
</form>
</shield:permssion>